package com.example.demo.dto;

import java.io.Serializable;
import java.sql.Date;
import java.util.Objects;

public class HealthDTO implements Serializable {
    private Integer hid;
    private Integer hoid;
    private String honame;
    private String hstatus;
    private String htep;
    private String hmessage;
    private Date hdate;

    public HealthDTO() {
    }

    public HealthDTO(Integer hid, Integer hoid, String honame, String hstatus, String htep, String hmessage, Date hdate) {
        this.hid = hid;
        this.hoid = hoid;
        this.honame = honame;
        this.hstatus = hstatus;
        this.htep = htep;
        this.hmessage = hmessage;
        this.hdate = hdate;
    }

    public Integer getHid() {
        return hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    public Integer getHoid() {
        return hoid;
    }

    public void setHoid(Integer hoid) {
        this.hoid = hoid;
    }

    public String getHoname() {
        return honame;
    }

    public void setHoname(String honame) {
        this.honame = honame;
    }

    public String getHstatus() {
        return hstatus;
    }

    public void setHstatus(String hstatus) {
        this.hstatus = hstatus;
    }

    public String getHtep() {
        return htep;
    }

    public void setHtep(String htep) {
        this.htep = htep;
    }

    public String getHmessage() {
        return hmessage;
    }

    public void setHmessage(String hmessage) {
        this.hmessage = hmessage;
    }

    public Date getHdate() {
        return hdate;
    }

    public void setHdate(Date hdate) {
        this.hdate = hdate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HealthDTO healthDTO = (HealthDTO) o;
        return Objects.equals(hid, healthDTO.hid) && Objects.equals(hoid, healthDTO.hoid) && Objects.equals(honame, healthDTO.honame) && Objects.equals(hstatus, healthDTO.hstatus) && Objects.equals(htep, healthDTO.htep) && Objects.equals(hmessage, healthDTO.hmessage) && Objects.equals(hdate, healthDTO.hdate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(hid, hoid, honame, hstatus, htep, hmessage, hdate);
    }

    @Override
    public String toString() {
        return "HealthDTO{" +
                "hid=" + hid +
                ", hoid=" + hoid +
                ", honame='" + honame + '\'' +
                ", hstatus='" + hstatus + '\'' +
                ", htep='" + htep + '\'' +
                ", hmessage='" + hmessage + '\'' +
                ", hdate=" + hdate +
                '}';
    }

}
